FROM alpine
LABEL maintainer="陈新亮<chenxinliang@bit.edu.cn>"

RUN sed -i 's,https://dl-cdn.alpinelinux.org,https://mirrors.tuna.tsinghua.edu.cn,' /etc/apk/repositories

RUN apk add --update --no-cache zsh vim git iproute2 iputils-ping dnsmasq dumb-init openrc tmux alpine-conf

COPY install.sh /srv/install.sh
COPY zshrc /root/.zshrc
COPY entrypoint.sh /entrypoint.sh

RUN chmod +x /srv/install.sh && chmod +x /entrypoint.sh
RUN /srv/install.sh


ENTRYPOINT ["/entrypoint.sh"]
